luci-mod-network: make state of interface more clear
authorFlorian Eckert <[email protected]>
Mon, 6 Oct 2025 11:05:10 +0000 (13:05 +0200)
committerFlorian Eckert <[email protected]>
Fri, 10 Oct 2025 12:08:14 +0000 (14:08 +0200)
commited2c7f896568f97016ed0543c568266847efe67e
treed8986d3d8a580e934ef426ed7cf33ca17b779505
parenteee5cbb6c4e5a644f4004797072167656a78855c
luci-mod-network: make state of interface more clear

In the current source, it is difficult to see when the disable button should
be shown or not. This commit adjusts this and moves the handling to an
if else statement, so that it can be easily seen.

Signed-off-by: Florian Eckert <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js